package com.jeesite.modules.ch.entity.param;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public enum JiesuanShuilv {
    ONE("1","1%"),
    THREE("3","3%"),
    SIX("6","6%"),
    ;
    private String code;
    private String desc;

    private JiesuanShuilv(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static Map<String,String> getByMap() {
        Map<String,String> map = new HashMap<String,String>();
        for(JiesuanShuilv j : JiesuanShuilv.values()) {
            map.put(j.getCode(),j.getDesc());
        }
        return map;
    }
}
